package com.edu.bean;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * @Author:何包蛋
 * @Date :2022/11/16 - 11 - 16 - 15:05
 */
public class User {

    private int userId;

    private String userName;

    private String password;

    private String[] hobbies;

    private Address addr;

    private List<Car> cars;

    private Map<String,Person> relations;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String[] getHobbies() {
        return hobbies;
    }

    public void setHobbies(String[] hobbies) {
        this.hobbies = hobbies;
    }

    public Address getAddr() {
        return addr;
    }

    public void setAddr(Address addr) {
        this.addr = addr;
    }

    public List<Car> getCars() {
        return cars;
    }

    public void setCars(List<Car> cars) {
        this.cars = cars;
    }

    public Map<String, Person> getRelations() {
        return relations;
    }

    public void setRelations(Map<String, Person> relations) {
        this.relations = relations;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", hobbies=" + Arrays.toString(hobbies) +
                ", addr=" + addr +
                ", cars=" + cars +
                ", relations=" + relations +
                '}';
    }
}
